<?php
require(PUBLIC_PATH."header.php");

echo '<table class="table table-hover">';
echo '<tr><th>username</th><th>gender</th><th>hobby</th></tr>';
foreach($data['userlist'] as $one){
	echo '<tr>';
	echo '<td>'.$one['uname'].'</td>';
	echo '<td>'.$one['gender'].'</td>';
	echo '<td>'.$one['hobby'].'</td>';
	echo '</tr>';
}
echo '</table>';

echo 'welcome '.$data['teacher']['uname'];
echo '<br>';
echo 'welcome '.$data['student']['uname'];

require(PUBLIC_PATH."footer.php");
?>